package org.summerframework.component.note.code.model.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.summerframework.component.mybites.redis.LoggingRedisCache;
import org.summerframework.component.note.code.model.domain.NoteCodeRecordDO;
import org.apache.ibatis.annotations.CacheNamespace;
import org.springframework.stereotype.Repository;

@Repository
@CacheNamespace(implementation = LoggingRedisCache.class, eviction = LoggingRedisCache.class)
public interface NoteCodeRecordDAO extends BaseMapper<NoteCodeRecordDO> {
    Integer[] selectCountByAccount(String account);

    Integer selectCountTodayByIp(String ip);
}
